﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EFFC.Net.Data.DBData;
using EFFC.Net.Interface;

namespace EFFC.Net.Returns
{
    [Serializable]
    public class QueryReturn:ReturnStd
    {
        public QueryReturn()
        {
            AddReElement("Module", typeof(IModule));
            AddReElement("DataTable", typeof(DataTableStd));
            AddReElement("DataSet", typeof(DataSetStd));
        }
        /// <summary>
        /// PageModule
        /// </summary>
        public IModule Module
        {
            get { return GetValue<IModule>("Module"); }
            set { _p["Module"].Value = value; }
        }
        /// <summary>
        /// 返回的数据集
        /// </summary>
        public DataSetStd R_DataSet
        {
            get { return GetValue<DataSetStd>("DataSet"); }
            set { _p["DataSet"].Value = value; }
        }
        /// <summary>
        /// 返回的数据表
        /// </summary>
        public DataTableStd R_DataTable
        {
            get { return GetValue<DataTableStd>("DataTable"); }
            set { _p["DataTable"].Value = value; }
        }
    }
}
